﻿@model Orchard.Blogs.ViewModels.RecentBlogPostsViewModel

@using Orchard.Blogs.Models;
@using Orchard.Core.Routable.Models;
@using Orchard.ContentManagement;

<fieldset>
    <div>
        @Html.LabelFor(m => m.Path, T("For Blog"))
        <select id="@Html.FieldIdFor(m => m.Path)" name="@Html.FieldNameFor(m => m.Path)">
		@foreach(BlogPart blog in Model.Blogs) {
            @Html.SelectOption(Model.Path, blog.As<RoutePart>().Path, blog.Name)
		}
		</select>
        <span class="hint">@T("Select which blog you want to display the recent posts for")</span>
    </div>
    <div>
        @Html.LabelFor(m => m.Count, T("Count"))
        @Html.TextBoxFor(m => m.Count)
    </div>
</fieldset>